package io.jee.caisan.weixin.config;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

@Component
public class UrlManager {

	public static String login = "/user/login";
	public static String register = "/user/register";
	public static String index = "/index";
	public static String personal = "/user/personal";
	public static String payNotify = "/pay/notify";
	public static String payIndex = "/pay/index";

	@Resource
	private ConfigProperties configProperties;

	public String login() {
		return configProperties.getServer().getUrl() + login;
	}

	public String index() {
		return configProperties.getServer().getUrl() + index;
	}

	public String register() {
		return configProperties.getServer().getUrl() + register;
	}
	
	public String personal() {
		return configProperties.getServer().getUrl() + personal;
	}
	
	public String payNotify() {
		return configProperties.getServer().getUrl() + payNotify;
	}
	
	public String payIndex() {
		return configProperties.getServer().getUrl() + payIndex;
	}
}
